package edu.whut.mall.portal.mapper;

import edu.whut.mall.model.GroupBuyRecordUser;
import edu.whut.mall.model.Robot;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Wayne
 * @projectName d9lab-mall
 * @description: 自定义机器人Mapper
 * @date 2020/11/12 11:08
 */
public interface RobotCustomMapper {

    /**
     * 机器人拼单
     * @param robotList
     * @return
     */
    Integer batchInsertRobot(@Param("robotList") List<GroupBuyRecordUser> robotList);

    /**
    * 所有机器人的数量
     * @return
     */
    Integer countAllRobots();


    List<Robot> selectSpecificQuantityRobots(@Param("offset")Integer offset, @Param("count")Integer count);
}